//************************************************************************
/// <copyrigth>2024-2025 Corporation.All Rights Reserved</copyrigth>
/// <author>tangyingzhong</author>
/// <contact>tangyz114987@outlook.com</contact>
/// <version>v1.0.0</version>
/// <describe>
/// It is a target which manages all observers
///</describe>
/// <date>2024/5/6</date>
///***********************************************************************
#ifndef ITARGET_H
#define ITARGET_H

#include "IObserver.h"
#include "ModuleLoader/ModuleConfig.h"

namespace SystemTool
{
    class CLASS_ITEM ITarget
    {
    public:
        // Destruct the obj
        virtual ~ITarget() {}

        // Add observer(Target do it)
        virtual void Add(IObserver *pObserver) = 0;

        // Remove the observer(Target do it)
        virtual void Remove(IObserver *pObserver) = 0;

        // Post notify and return imediately(Target do it)
        virtual void Post(NotifyArgs& Args) = 0;
    };
}

#endif // ITARGET_H
